﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using WMSSoft.Lib.WinKStart.Abstract;

namespace WMSSoft.Lib.WinKStart.ViewModel
{
    public class CSingleCommandViewModel : CViewModelBase
    {
        public ICommand Command { get; private set; }

        public bool IsMenuCommand { get; set; }

        public bool IsSettingOptionCommand { get; set; }

        public List<CSingleCommandViewModel> SubItemList { get; set; }

        public CSingleCommandViewModel(string sViewName, ICommand oCommand)
        {
            Command = oCommand;
            ViewName = sViewName;
        }

        public CSingleCommandViewModel(string sViewName, ICommand oCommand, bool SettingOptionCommand)
        {
            Command = oCommand;
            ViewName = sViewName;
            IsSettingOptionCommand = SettingOptionCommand;
        }

        public CSingleCommandViewModel(string sViewName, ICommand oCommand, bool SettingOptionCommand, List<CSingleCommandViewModel> SubItems)
        {
            Command = oCommand;
            ViewName = sViewName;
            IsSettingOptionCommand = SettingOptionCommand;
            SubItemList = SubItems;
        }
        
    }
}
